package com.cangxuan.backend.dao;

import com.cangxuan.backend.entity.Article;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * article_type表访问接口
 */
@Mapper
public interface IArticleDao {

    List<Article> selectByArticleTypeId(@Param("typeId") int typeId);//根据文章类型ID获取列表

    Article selectByArticleId(@Param("id") int id);//根据文章类型ID获取文章内容

    Article selectByArticleNewId(@Param("id") int id);//根据文章类型最新ID

}
